package cate.common.table.activity.lottery.row;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteField;

public class LotteryBaseRow extends ERow {
    @NoteField("配置ID")
    public int configId;
    @NoteField("单抽消耗")
    public String oneCost;
    @NoteField("十连消耗")
    public String tenCost;
    @NoteField("单抽元宝消耗")
    public String oneDiaCost;
    @NoteField("十连元宝消耗")
    public String tenDiaCost;
    @NoteField("保底次数")
    public int cheatTimes;
    @NoteField("奖励分组")
    public int normalGroup;
    @NoteField("保底奖励分组")
    public int cheatGroup;
    @NoteField("次数奖励分组")
    public int timesGroup;
    @NoteField("免费次数上限")
    public int freeLimit;

    @Override
    public void parse(XSSFRowWrap xrw) {
        this.id = xrw.getInteger("配置ID");
        this.oneCost = xrw.getString("单抽消耗");
        this.tenCost = xrw.getString("十连消耗");
        this.oneDiaCost = xrw.getString("单抽元宝消耗");
        this.tenDiaCost = xrw.getString("十连元宝消耗");
        this.cheatTimes = xrw.getInteger("保底次数");
        this.normalGroup = xrw.getInteger("奖励分组");
        this.cheatGroup = xrw.getInteger("保底奖励分组");
        this.timesGroup = xrw.getInteger("次数奖励分组");
        this.freeLimit = xrw.getInteger("免费次数上限");
    }
}
